<script setup>
import { useCountStore } from '@/stores'
const countStor = useCountStore()
</script>
<template>
  <div>
    我是test
    <el-button @click="countStor.sub(3)" type="success">-</el-button>
    <span>{{ countStor.count }}</span>
    <el-button @click="countStor.add(2)" type="primary">+</el-button>
  </div>
</template>

<style lang="scss" scoped></style>
